package common.mq.register.po;

import java.util.Map;

public class MessageBase {

	private String category; // 类别名
	private int overdueTime; // 过期时间 ,单位秒
	private int type;// 加消息类型，包括定时消息
	private Map<String,String> content; // 
	
	public MessageBase(String category, int overdueTime, int type,
			Map<String, String> content) {
		super();
		this.category = category;
		this.overdueTime = overdueTime;
		this.type = type;
		this.content = content;
	}
	public String getCategory() {
		return category;
	}
	public void setCategory(String category) {
		this.category = category;
	}
	public void setOverdueTime(int overdueTime) {
		this.overdueTime = overdueTime;
	}
	public int getOverdueTime() {
		return overdueTime;
	}
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	public Map<String, String> getContent() {
		return content;
	}
	public void setContent(Map<String, String> content) {
		this.content = content;
	}
	
	public boolean equals(Object obj){
		if(obj == null)
			return false;
		MessageBase m = (MessageBase)obj;
		if(this.category== m.category ){
			return true;
		}
		return false;
		
	}
	
}
